# Contributor: Erol V. Aktay <e.aktay@gmail.com>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=python2-html5lib
pkgver=0.95
pkgrel=1
pkgdesc="A HTML parser/tokenizer based on the WHATWG HTML5 spec"
arch=('any')
url="http://code.google.com/p/html5lib/"
license=('MIT')
depends=('python2')
makedepends=('unzip' 'setuptools')
source=(http://html5lib.googlecode.com/files/html5lib-${pkgver}.tar.gz
 LICENSE)
replaces=('python-html5lib')
provides=('python-html5lib')
md5sums=('fe607f9917d81763e842f818f23464ee'
         '838c366f69b72c5df05c96dff79b35f2')

package() {
   cd ${srcdir}/html5lib-${pkgver}

   python2 setup.py install --root=${pkgdir}
   install -dm755 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
